package com.zt.teacher.dao;

import com.zt.common.pojo.PrivateLetter;
import com.zt.teacher.dto.PrivateLetterDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * description:
 * author:zt
 * date:2022-02-06
 */
@Mapper
public interface PrivateLetterDao {

    List<PrivateLetter> select(@Param("senderId") String senderId, @Param("receiverId") String receiverId);

    void insert(String senderId, String message, int status, Date sendTime, @Param("receiverIds") List<String> receiverIds);

    List<PrivateLetter> getDetail(@Param("senderId") String senderId, @Param("receiverId") String receiverId,String time);

    void readLetter(@Param("senderId") String senderId, @Param("receiverId") String receiverId,String time);

    int getUnreadCount(@Param("receiverId") String receiverId, String semester);
}
